package com.video.service;

import com.video.bean.Video;
import com.video.utils.ResultMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface VideoServiceI {

    /**
     * 查询所有
     * @return
     */
    public ResultMap selectAllVideo();

    /**
     * 分页查询所有
     * @return
     */
    public ResultMap selectAllVideoByLimit(int page,int limit);

    /**
     * 根据tid查询视频
     * @return
     */
    public ResultMap selectVideoByTid(String tid);

    /**
     * 根据vid查询视频
     * @param vid
     * @return
     */
    public ResultMap selectVideoByVid(String vid,HttpSession sesion);

    /**
     * 新建视频
     * @param video
     * @return
     */
    public void createVideo(Video video, HttpServletRequest request);

    /**
     * 修改视频信息
     * @param videoStr
     * @return
     */
     public ResultMap updateVideoByVId(String videoStr);

     /**
     *  删除视频信息
     * @param vId
     * @return
     */
    public ResultMap deleteVideoByVid(String vId);

}
